package edu.biwu.mapper;

import edu.biwu.po.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    int insertUser(Users users);

    Users selectById(int id);

    int updateUser(Users users);

    int deleteById(int id);

    List<Users> selectByCondition(String name);

    List<Users> selectByCondition02(@Param("name") String name, @Param("email") String email);

//    List<Users> selectByIds(Users usrs);
    List<Users> selectByIds(@Param("ids") List<Integer> ids);

    List<Users> selectRepeat(Users users);

    List<Users> selectByName(Users users);
}
